//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.hibernate.validator.constraints.Length;

@ApiModel(
        value = "OrgSaveDTO",
        description = "组织"
)
public class OrgSaveDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("名称")
    @Length(
            max = 255,
            message = "名称长度不能超过255"
    )
    private String name;
    @ApiModelProperty("简称")
    @Length(
            max = 255,
            message = "简称长度不能超过255"
    )
    private String abbreviation;
    @ApiModelProperty("父ID")
    private Long parentId;
    @ApiModelProperty("排序")
    private Integer sortValue;
    @ApiModelProperty("状态")
    private Boolean status;
    @ApiModelProperty("描述")
    @Length(
            max = 255,
            message = "描述长度不能超过255"
    )
    private String describe;

    public static OrgSaveDTOBuilder builder() {
        return new OrgSaveDTOBuilder();
    }

    public String getName() {
        return this.name;
    }

    public String getAbbreviation() {
        return this.abbreviation;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public Integer getSortValue() {
        return this.sortValue;
    }

    public Boolean getStatus() {
        return this.status;
    }

    public String getDescribe() {
        return this.describe;
    }

    public OrgSaveDTO setName(final String name) {
        this.name = name;
        return this;
    }

    public OrgSaveDTO setAbbreviation(final String abbreviation) {
        this.abbreviation = abbreviation;
        return this;
    }

    public OrgSaveDTO setParentId(final Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public OrgSaveDTO setSortValue(final Integer sortValue) {
        this.sortValue = sortValue;
        return this;
    }

    public OrgSaveDTO setStatus(final Boolean status) {
        this.status = status;
        return this;
    }

    public OrgSaveDTO setDescribe(final String describe) {
        this.describe = describe;
        return this;
    }

    public OrgSaveDTO() {
    }

    public OrgSaveDTO(final String name, final String abbreviation, final Long parentId, final Integer sortValue, final Boolean status, final String describe) {
        this.name = name;
        this.abbreviation = abbreviation;
        this.parentId = parentId;
        this.sortValue = sortValue;
        this.status = status;
        this.describe = describe;
    }

    public String toString() {
        return "OrgSaveDTO(super=" + super.toString() + ", name=" + this.getName() + ", abbreviation=" + this.getAbbreviation() + ", parentId=" + this.getParentId() + ", sortValue=" + this.getSortValue() + ", status=" + this.getStatus() + ", describe=" + this.getDescribe() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof OrgSaveDTO)) {
            return false;
        } else {
            OrgSaveDTO other = (OrgSaveDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$abbreviation = this.getAbbreviation();
                Object other$abbreviation = other.getAbbreviation();
                if (this$abbreviation == null) {
                    if (other$abbreviation != null) {
                        return false;
                    }
                } else if (!this$abbreviation.equals(other$abbreviation)) {
                    return false;
                }

                Object this$parentId = this.getParentId();
                Object other$parentId = other.getParentId();
                if (this$parentId == null) {
                    if (other$parentId != null) {
                        return false;
                    }
                } else if (!this$parentId.equals(other$parentId)) {
                    return false;
                }

                label62: {
                    Object this$sortValue = this.getSortValue();
                    Object other$sortValue = other.getSortValue();
                    if (this$sortValue == null) {
                        if (other$sortValue == null) {
                            break label62;
                        }
                    } else if (this$sortValue.equals(other$sortValue)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$status = this.getStatus();
                    Object other$status = other.getStatus();
                    if (this$status == null) {
                        if (other$status == null) {
                            break label55;
                        }
                    } else if (this$status.equals(other$status)) {
                        break label55;
                    }

                    return false;
                }

                Object this$describe = this.getDescribe();
                Object other$describe = other.getDescribe();
                if (this$describe == null) {
                    if (other$describe != null) {
                        return false;
                    }
                } else if (!this$describe.equals(other$describe)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof OrgSaveDTO;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $abbreviation = this.getAbbreviation();
        result = result * 59 + ($abbreviation == null ? 43 : $abbreviation.hashCode());
        Object $parentId = this.getParentId();
        result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
        Object $sortValue = this.getSortValue();
        result = result * 59 + ($sortValue == null ? 43 : $sortValue.hashCode());
        Object $status = this.getStatus();
        result = result * 59 + ($status == null ? 43 : $status.hashCode());
        Object $describe = this.getDescribe();
        result = result * 59 + ($describe == null ? 43 : $describe.hashCode());
        return result;
    }

    public static class OrgSaveDTOBuilder {
        private String name;
        private String abbreviation;
        private Long parentId;
        private Integer sortValue;
        private Boolean status;
        private String describe;

        OrgSaveDTOBuilder() {
        }

        public OrgSaveDTOBuilder name(final String name) {
            this.name = name;
            return this;
        }

        public OrgSaveDTOBuilder abbreviation(final String abbreviation) {
            this.abbreviation = abbreviation;
            return this;
        }

        public OrgSaveDTOBuilder parentId(final Long parentId) {
            this.parentId = parentId;
            return this;
        }

        public OrgSaveDTOBuilder sortValue(final Integer sortValue) {
            this.sortValue = sortValue;
            return this;
        }

        public OrgSaveDTOBuilder status(final Boolean status) {
            this.status = status;
            return this;
        }

        public OrgSaveDTOBuilder describe(final String describe) {
            this.describe = describe;
            return this;
        }

        public OrgSaveDTO build() {
            return new OrgSaveDTO(this.name, this.abbreviation, this.parentId, this.sortValue, this.status, this.describe);
        }

        public String toString() {
            return "OrgSaveDTO.OrgSaveDTOBuilder(name=" + this.name + ", abbreviation=" + this.abbreviation + ", parentId=" + this.parentId + ", sortValue=" + this.sortValue + ", status=" + this.status + ", describe=" + this.describe + ")";
        }
    }
}
